<?php
$userid = islogin('json');
$oAddress = new Address();
$r = $oAddress->save_address($userid, $_POST);
if($r['result'] == 'succ'){
	//$r['address']['province_name'] = $oAddress->get_province_by_id($r['address']['province_id']);
	//$r['address']['city_name'] = $oAddress->get_city_by_id($r['address']['city_id']);
	//$r['address']['area_name'] = $oAddress->get_area_by_id($r['address']['area_id']);
}
exit(json_encode($r));
?>